<!--
 * @FilePath: myDialog.vue
 * @Author: 杜芬
 * @Date: 2023-09-25 16:00:31
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2023-09-25 16:13:17
 * Copyright: 2023 xxxTech CO.,LTD. All Rights Reserved.
 * @Descripttion: 页面
-->
<template>
  <div>
    <div>
      用户名：
      <input type="text" v-model="userName" />
    </div>
    <div>密码：<input type="text" v-model="passWord" /></div>
  </div>
</template>
<script>
export default {
  data() {
    return {
      userName: '',
      passWord: '',
    };
  },
  methods: {
    // 获取数据
    getVal() {
      return {
        userName: this.userName,
        passWord: this.passWord,
      };
    },
    // 重置数据
    clearVal() {
      (this.userName = ''), (this.passWord = '');
    },
  },
};
</script>
